package com.jt9003.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.sql.Time;
import java.util.Date;

public class User1 {
    private Integer uId;

    private Integer tId;

    private String tIdShow;


    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date uEntryDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date uQuitDate;

    private Integer departId;

    private String departIdShow;

    private Integer officesId;

    private String officesIdShow;

    private Time uStartDate;

    private Time uStopDate;

    private String uModifier;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date uModifyDate;

    private String uLoginName;

    private String uPassword;

    private String uCardId;

    private String uAddress;

    private String uPhone;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(shape=JsonFormat.Shape.STRING,pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date uBirthday;

    private Integer uAge;

    private String uGender;

    private String uName;

    private Integer uState;

    private Integer powId;

    private Integer uRegister;

    private Integer uDoctorWS;

    private Integer uPay;

    private Integer uPharmacy;

    private Integer uStorageRoom;

    private Integer uArchives;

    public User1() {
        super();
    }

    public String getOfficesIdShow() {
       /* if (officesId==1){
            officesIdShow="急诊科";

        }else if (officesId==2){
            officesIdShow="儿科";

        }else if (officesId==3){
            officesIdShow="五官科";

        }else if (officesId==4){
            officesIdShow="内科";

        }else if (officesId==5){
            officesIdShow="外科";

        }*/
        return officesIdShow;
    }

    public void setOfficesIdShow(String officesIdShow) {
        this.officesIdShow = officesIdShow;
    }

    public String getDepartIdShow() {
       /* if (departId==20){
            departIdShow="门诊部";

        } else if (departId==21){
            departIdShow="行政部";

        } else if (departId==22){
            departIdShow="库房部";

        } else if (departId==23) {
            departIdShow="药房部";

        } else if (departId==24){
            departIdShow="财务部";

        }*/
        return departIdShow;
    }

    public void setDepartIdShow(String departIdShow) {
        this.departIdShow = departIdShow;
    }

    public String gettIdShow() {
       /* if (tId==1){
            tIdShow="前台";

        }else if (tId==2){
            tIdShow="医生";

        }else if (tId==3){
            tIdShow="收银";

        }else if (tId==4){
            tIdShow="药房管理";

        }else if (tId==5){
            tIdShow="库房管理";

        }else if (tId==6){
            tIdShow="超级管理员";

        }*/
        return tIdShow;
    }

    public void settIdShow(String tIdShow) {
        this.tIdShow = tIdShow;
    }

    public Integer getuRegister() {
        return uRegister;
    }

    public void setuRegister(Integer uRegister) {
        this.uRegister = uRegister;
    }

    public Integer getuDoctorWS() {
        return uDoctorWS;
    }

    public void setuDoctorWS(Integer uDoctorWS) {
        this.uDoctorWS = uDoctorWS;
    }

    public Integer getuPay() {
        return uPay;
    }

    public void setuPay(Integer uPay) {
        this.uPay = uPay;
    }

    public Integer getuPharmacy() {
        return uPharmacy;
    }

    public void setuPharmacy(Integer uPharmacy) {
        this.uPharmacy = uPharmacy;
    }

    public Integer getuStorageRoom() {
        return uStorageRoom;
    }

    public void setuStorageRoom(Integer uStorageRoom) {
        this.uStorageRoom = uStorageRoom;
    }

    public Integer getuArchives() {
        return uArchives;
    }

    public void setuArchives(Integer uArchives) {
        this.uArchives = uArchives;
    }



    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public Integer gettId() {
        return tId;
    }

    public void settId(Integer tId) {
        this.tId = tId;
    }


    public Date getuEntryDate() {


        return uEntryDate;
    }

    public void setuEntryDate(Date uEntryDate) {
        this.uEntryDate = uEntryDate;
    }


    public Date getuQuitDate() {
        return uQuitDate;
    }

    public void setuQuitDate(Date uQuitDate) {
        this.uQuitDate = uQuitDate;
    }

    public Integer getDepartId() {
        return departId;
    }

    public void setDepartId(Integer departId) {
        this.departId = departId;
    }

    public Integer getOfficesId() {
        return officesId;
    }

    public void setOfficesId(Integer officesId) {
        this.officesId = officesId;
    }

    public Time getuStartDate() {
        return uStartDate;
    }

    public void setuStartDate(Time uStartDate) {
        this.uStartDate = uStartDate;
    }

    public Time getuStopDate() {
        return uStopDate;
    }

    public void setuStopDate(Time uStopDate) {
        this.uStopDate = uStopDate;
    }

    public String getuModifier() {
        return uModifier;
    }

    public void setuModifier(String uModifier) {
        this.uModifier = uModifier == null ? null : uModifier.trim();
    }

    public Date getuModifyDate() {
        return uModifyDate;
    }

    public void setuModifyDate(Date uModifyDate) {
        this.uModifyDate = uModifyDate;
    }

    public String getuLoginName() {
        return uLoginName;
    }

    public void setuLoginName(String uLoginName) {
        this.uLoginName = uLoginName == null ? null : uLoginName.trim();
    }

    public String getuPassword() {
        return uPassword;
    }

    public void setuPassword(String uPassword) {
        this.uPassword = uPassword == null ? null : uPassword.trim();
    }

    public String getuCardId() {
        return uCardId;
    }

    public void setuCardId(String uCardId) {
        this.uCardId = uCardId == null ? null : uCardId.trim();
    }

    public String getuAddress() {
        return uAddress;
    }

    public void setuAddress(String uAddress) {
        this.uAddress = uAddress == null ? null : uAddress.trim();
    }

    public String getuPhone() {
        return uPhone;
    }

    public void setuPhone(String uPhone) {
        this.uPhone = uPhone == null ? null : uPhone.trim();
    }

    public Date getuBirthday() {
        return uBirthday;
    }

    public void setuBirthday(Date uBirthday) {
        this.uBirthday = uBirthday;
    }

    public Integer getuAge() {
        return uAge;
    }

    public void setuAge(Integer uAge) {
        this.uAge = uAge;
    }

    public String getuGender() {
        return uGender;
    }

    public void setuGender(String uGender) {
        this.uGender = uGender == null ? null : uGender.trim();
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName == null ? null : uName.trim();
    }

    public Integer getuState() {
        return uState;
    }

    public void setuState(Integer uState) {
        this.uState = uState;
    }

    public Integer getPowId() {
        return powId;
    }

    public void setPowId(Integer powId) {
        this.powId = powId;
    }
}